reset
create model/grating-3D.in a
plot create a.cell a
plot create a.cell b
plot slab a 25 z
plot slab b 40 y

echo wait...
sleep 3
echo step 10 times
step 10
plot a;plot b
echo move plot window now
sleep 3

verbose
#dump a.cell > out.csv

echo looping...

loop 200
  step 100
  echo time(a) avg(a.cell)
  plot a
  plot b
  sleep 0.01
end

dump a.cell > out.vtr

echo finished
sleep 5
